<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html >

<head>
    <meta charset="UTF-8">
    <title>Document</title>

</head>

<body>
    <form id="updateClassform" method="post" style="text-align: center;padding-top: 30px">
         <div>
            <input id="classId" class="easyui-validatebox" type="hidden" name="id" readonly=true  style="margin-bottom:15px;" />
        </div>
        <div>
            <label for="code">班级号:</label>
            <input id="classcode" class="easyui-validatebox" type="text" name="code" readonly=true  style="margin-bottom:15px;" />
        </div>
        <div>
            <label   for="name">班级名:</label>
            <input id="name" class="easyui-validatebox" type="text" name="name"style="margin-bottom:15px;" data-options="required:true"/>
        </div>
        <div>
            <label  for="date">创建时间:</label>
            <input id="date" class="easyui-validatebox" type="text" name="date" readonly=true />
        </div>

    </form>
    <script type="text/javascript">
$(function(){
    var rows = $('#dg').datagrid('getSelections')[0];
    $('#classId').val(rows.id)
    $('#classcode').val(rows.classcode);
    $('#name').val(rows.name);
    $('#date').val(rows.createdate);
})
</script>

</body>


</html>